package cn.tedu.tea.adapter.common.response;

import lombok.Getter;

@Getter
public enum AppCode {
    SUCCESS(20000,"请求成功"),
    FAILED(40000,"请求失败"),
    VALIDATE_ERROR(40100,"参数校验失败"),
    RESPONSE_PACK_ERROR(40200,"response返回封装失败"),
    APP_ERROR(40300,"业务异常"),
    FILE_UPLOAD_FAIL(40400,"文件上传失败"),
    ;
    private int code;
    private String message;
    AppCode(int code,String message){
        this.code = code;
        this.message = message;
    }

}
